package com.learn.base.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author : Yu.Tan
 * @date : 2023/1/17 18:04
 * @desc : **
 */
@Getter
@AllArgsConstructor
public enum ResultCode {
    //成功状态码
    SUCCESS(1,"成功"),
    ERROR(500,"异常"),
    //参数错误：1001-1999
    PARAM_IS_INVALID(1001,"参数无效"),
    PARAM_IS_BLANK(1002,"参数为空"),
    PARAM_TYPE_BIND_ERROR(1003,"参数类型错误"),
    PARAM_NOT_COMPLETE(1004,"参数缺失"),
    RATE_LIMIT_ERROR(1005, "请勿频繁操作"),

    ;

    private Integer code;
    private String message;
}
